{include file="public/header" /}





<div class="page">
    <div class="fixed-bar">
        <div class="item-title">
            <div class="subject">
                <h3>协议管理</h3>
                <h5></h5>
            </div>
            <ul class="tab-base ds-row">
                <li><a href="JavaScript:void(0);" dstype="index" class="current"><span>协议管理</span></a></li>

            </ul>
        </div>
    </div>

    <div class="explanation" id="explanation" style="display: none">
        <div class="title" id="checkZoom">
            <h4 title="{$Think.lang.ds_explanation_tip}">{$Think.lang.ds_explanation}</h4>
            <span id="explanationZoom" title="{$Think.lang.ds_explanation_close}" class="arrow"></span>
        </div>
        <ul>
        </ul>
    </div>

    <table class="ds-default-table">
        <thead>
        <tr class="thead">
            <th>标题</th>
            <th class="align-center">最后修改时间</th>
            <th>{$Think.lang.ds_handle}</th>
        </tr>
        </thead>
        <tbody>
        {notempty name="$protocol"}
        {foreach name="$protocol" item="v"}
        <tr class="hover">
            <td >{$v.name}</td>
            <td class="w25pre align-center">{$v.updated_at}</td>
            <td class="w96"><a href="{:url('Protocol/edit',['id'=>$v.id])}" class="dsui-btn-edit"><i class="iconfont"></i>{$Think.lang.ds_edit}</a></td>
        </tr>
        {/foreach}
        {else}
        <tr class="no_data">
            <td colspan="15">没有相关数据</td>
        </tr>
        {/notempty}
    </table>
</div>
<script type="text/javascript">
    $('textarea').change(function () {
        var name = $(this).attr('name');
        var value = $(this).val();
        $.get('/admin/protocol/ajax_update', {
            name: name,
            value: value
        }, function (res) {
            layer.msg(res.message);
        }, 'json')
    })
</script>
